package core

class Person {
	/*BigInteger civilIdNo
	 String fullNameAr
	 String firstNameAr
	 String FatherNameAr
	 String grandFatherNameAr
	 String lastNameAr
	 String firstNameEn
	 String FatherNameEn
	 String grandFatherNameEn
	 String lastNameEn
	 String genderAr
	 String genderEn
	 Date   birthDate
	 String motherNameAr
	 String birthPlaceAr
	 String originAr
	 String religionAr
	 String maritalStatusAr
	 String motherNameEn
	 String birthPlaceEn
	 String originEn
	 String religionEn
	 String maritalStatusEn
	
	 static hasMany = [legalIdentifiers: LegalIdentifier, nationalities: Nationality, personAddresses: PersonAddress]
	 //int age
	 //static transients = ['age']
	 //static mapping = {  age formula: 100 - 55 } */
	String firstName
	String lastName
	Date birthDate
	// String fullName
	static hasMany = [legalIdentifiers: LegalIdentifier,addresses: Address, nationalities: Nationality]
	static constraints = {
		//firstNameAr (blank: false,validator:{val, obj -> if (val?.equalsIgnoreCase('Kamal'))return 'never use Kamal as first name' })

	}
}
